//
/******************************************************
        File name:    main.c
        Author:       Bitat (陆叁柒)
        Gitee :       https://gitee.com/bitat
        Email :       737166381@qq.com
        History:      2023/1/4
*******************************************************/


#include <stdio.h>

int main()
{
    int number = 0;
    int number1 = 0;
    int consult = 0;
    int remainder = 0;
    scanf("%d %d",&number,&number1);
    
    consult = (number/number1);
    remainder = (number%number1);
    printf("%d %d\n",consult,remainder);
    
    return 0;
}
